package com.example.administrator.baikangxing.fragment;


import android.content.Intent;
import android.support.v4.app.Fragment;
import android.view.View;
import android.widget.TextView;

import com.example.administrator.baikangxing.R;
import com.example.administrator.baikangxing.activity.PersonInfoActivity;

/**
 * A simple {@link Fragment} subclass.
 */
public class FunctionFragment extends BaseFragment implements View.OnClickListener {

    private TextView function_person_info;

    @Override
    public int getContentViewLayoutId() {
        return R.layout.fragment_function;
    }

    @Override
    public void initView() {
        function_person_info = findView(R.id.function_person_info);
        function_person_info.setOnClickListener(this);
    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.function_person_info:
                startActivity(new Intent(getActivity(), PersonInfoActivity.class));
                break;
        }
    }
}
